// 搜索选项
const filterOption = {
    items: [
        {
            label: "条码/包码",
            type: "input",
            key: 'barcode',
            data: 'barcode',
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "采购单号",
            type: "input",
            key: 'sourceId',
            data: "sourceId",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: '责任归属',
            type: "dropdown",
            key: 'duty',
            data: [
                {
                    label: "戴瑞珠宝",
                    value: "戴瑞珠宝"
                },
                {
                    label: "供应商",
                    value: "供应商"
                }
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "定制编码",
            type: "input",
            key: 'customCode',
            data: "customCode",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "质检人",
            type: "dropdown",
            key: "qualityController",
            data: [
                {
                    label: "a",
                    value: "1"
                },
                {
                    label: "b",
                    value: "2"
                }
            ],
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "质检日期",
            type: "datetimerange",
            key: 'qualityTime',
            data: "qualityTime",
            placeholder: '请选择',
            value: undefined
        }
    ],
    btnGroup: [
        {
            label: "查询",
            type: "search"
        },
        {
            label: "清空",
            type: "clear"
        }
    ],
    close: false
}
// 质检记录列表项
const qualityRecordItems = [
    {
        prop: "barcode",
        label: "条码",
        width: "161"
    },
    {
        prop: "description",
        label: "描述",
        width: "175"
    },
    {
        prop: "status",
        label: "质检状态",
        width: "175"
    },
    {
        prop: "reason",
        label: "不合格原因",
        width: "203"
    },
    {
        prop: "reason",
        label: "采购单号",
        width: "203"
    },
    {
        prop: "duty",
        label: "责任归属",
        width: "188"
    },
    {
        prop: "customCode",
        label: "定制编码",
        width: "188"
    },
    {
        prop: "qualityTime",
        label: "创建时间",
        width: "188"
    },
    {
        prop: "qualityController",
        label: "创建人",
        width: "188"
    }
]
// 商品明细列表项
const goodsDetail = [
    {
        prop: "barcode",
        label: "条码",
        width: "120"
    },
    {
        prop: "ebeln",
        label: "采购单号",
        width: "120"
    },
    {
        prop: "styleNo",
        label: "款号",
        width: "120"
    },
    {
        prop: "customizationCode",
        label: "定制编号",
        width: "120"
    },
    {
        prop: "barcode",
        label: "SKU",
        width: "120"
    },
    {
        prop: "barcode",
        label: "品类",
        width: "120"
    },
    {
        prop: "barcode",
        label: "描述",
        width: "120"
    },
    {
        prop: "barcode",
        label: "刻字",
        width: "120"
    },
    {
        prop: "goldMaterialOne",
        label: "金料1材质",
        width: "120"
    },
    {
        prop: "goldMaterialWeightOne",
        label: "金料1重",
        width: "120"
    },
    {
        prop: "goldMaterialTwo",
        label: "金料2材质",
        width: "120"
    },
    {
        prop: "goldMaterialWeightTwo",
        label: "金料2重",
        width: "120"
    },
    {
        prop: "assistStoneExteriorOne",
        label: "副石1外观",
        width: "120"
    },
    {
        prop: "assistStoneNumberOne",
        label: "副石1颗数",
        width: "120"
    },
    {
        prop: "assistStoneExteriorTwo",
        label: "副石2外观",
        width: "120"
    },
    {
        prop: "assistStoneNumberTwo",
        label: "副石2颗数",
        width: "120"
    },
]
// 弹出窗质检记录
const qualityRecordItems2 = [
    {
        prop: "supplierId",
        label: "供应商",
        width: "120"
    },
    {
        prop: "barcode",
        label: "条码",
        width: "120"
    },
    {
        prop: "description",
        label: "描述",
        width: "120"
    },
    {
        prop: "qualityController",
        label: "质检人",
        width: "120"
    },
    {
        prop: "qualityTime",
        label: "质检时间",
        width: "120"
    },
    {
        prop: "status",
        label: "是否合格",
        width: "120"
    },
    {
        prop: "reason",
        label: "不合格原因",
        width: "120"
    },
    {
        prop: "duty",
        label: "责任归属",
        width: "120"
    }
]
// 状态参数 
const statusConfig = [
    {
        color: "brown",
        label: "质检中",
        value: "0",
        count: 123
    },
    {
        color: "green",
        label: "合格",
        value: "1",
        count: 123
    },
    {
        color: "red",
        label: "不合格",
        value: "2",
        count: 123
    },
    {
        color: "orange",
        label: "降级入库",
        value: "3",
        count: 123
    },
]
export default {
    filterOption,
    qualityRecordItems,
    goodsDetail,
    qualityRecordItems2,
    statusConfig,
}